package business.datacenter.impl;

import business.datacenter.HZCreditAccidentService;
import datacenter.domain.HZCreditAccident;
import datacenter.mapper.HZCreditAccidentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "accidentService")
public class HZCreditAccidentServiceImpl implements HZCreditAccidentService {

    @Autowired
    HZCreditAccidentMapper hzCreditAccidentMapper;
    @Override
    public void saveHZCreditAccident(List<HZCreditAccident> entities) {
        for(HZCreditAccident entity:entities) {
            hzCreditAccidentMapper.insertSelective(entity);
        }
    }
}
